package com.lq.educationsystem.common.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 *
 * @TableName classes_student_tb
 */
@Data
public class ClassesStudentPageVo implements Serializable {
    /**
     * 班级课程学生表
     */
    private Integer classesStudentId;

    /**
     * 学生id
     */
    private Integer studentId;
    /**
     * 班级id
     */
    private Integer classesId;
    /**
     * 页面大小
     */
    private Integer pageSize;

    /**
     * 当前页数
     */
    private Integer page;


    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ClassesStudentPageVo that = (ClassesStudentPageVo) o;
        return Objects.equals(classesStudentId, that.classesStudentId) && Objects.equals(studentId, that.studentId) && Objects.equals(classesId, that.classesId) && Objects.equals(pageSize, that.pageSize) && Objects.equals(page, that.page);
    }

    @Override
    public int hashCode() {
        return Objects.hash(classesStudentId, studentId, classesId, pageSize, page);
    }

    @Override
    public String toString() {
        return "ClassesStudentPageVo{" +
                "classesStudentId=" + classesStudentId +
                ", studentId=" + studentId +
                ", classesId=" + classesId +
                ", pageSize=" + pageSize +
                ", page=" + page +
                '}';
    }
}